package cn.gene.timeyan.ums.webapi.ums.mapper;

import cn.gene.timeyan.pojo.ums.dto.ReportDTO;
import cn.gene.timeyan.pojo.ums.model.Report;
import cn.gene.timeyan.pojo.ums.vo.ReportVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 对违规用户的举报 Mapper 接口
 * </p>
 *
 * @author LWG
 * @since 2022-08-07
 */
@Repository
public interface ReportMapper extends BaseMapper<Report> {


    int insertReport(Report report);

    //当处理状态为0(未处理时)，查看所有的未处理举报信息
    List<ReportVO> selectReportDTOByHandleState(ReportDTO reportDTO);
}
